﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListOfenquiry.aspx.cs"
    Inherits="CTEA_INDIA.ListOfenquiry" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<%@ Register Src="~/MenuList.ascx" TagName="Menu" TagPrefix="m1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Enquiry</title>
    <link href="CSS/Stylsheet.css" rel="stylesheet" type="text/css" />
    <link href="CSS/MyStyle.css" rel="stylesheet" type="text/css" />
    <script src="JS/Popup.js" type="text/javascript"></script>
    <link href="CSS/Popup.css" rel="stylesheet" type="text/css" />
    <script src="JS/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
        <uc:header runat="server" ID="aa" />
    </div>
    <div class="toporagne">
        <%--<img src="Images/top_orange-strip.jpg" />--%>
        <hr size="10" color="#091247" width="900px" />
    </div>
    <div>
        <center>
            <table width="1000px" border="0">
                <tr>
                    <td valign="top" align="center">
                        <table class="MainDiv" border="0">
                            <tr>
                                <td align="left">
                                    <m1:Menu runat="server" ID="menu" />
                                </td>
                                <td align="left" valign="top">
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upPnlCandidate">
                                        <ProgressTemplate>
                                            <center>
                                                <div id="pageLoading">
                                                    <center>
                                                        <img src="Images/loading123.gif" style="z-index: 5000; top: 50%; left: 50%; position: absolute;"
                                                            alt="loading" />
                                                        <div style="color: White; font-size: 18px; top: 50%; left: 50%;">
                                                            Loading...
                                                        </div>
                                                    </center>
                                                    <div id="transparentBg" class="transparentBg">
                                                    </div>
                                                </div>
                                            </center>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                    <asp:UpdatePanel ID="upPnlCandidate" runat="server">
                                        <ContentTemplate>
                                            <table cellpadding="5" width="600px" class="MainDiv">
                                                <tr>
                                                    <td colspan="2">
                                                        <span id="spnMsg" runat="server" style="color: red"></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <div style="float: left">
                                                            <asp:LinkButton ID="lnkUnsolved" runat="server" OnClick="lnkUnsolved_Click">Unsolved </asp:LinkButton>
                                                        </div>
                                                        <div style="float: left; color: #fff; padding: 0px 5px 0px 5px">
                                                            |
                                                        </div>
                                                        <div style="float: left">
                                                            <asp:LinkButton ID="lnkPending" runat="server" OnClick="lnkPending_Click">Pending</asp:LinkButton>
                                                        </div>
                                                        <div style="float: left; color: #fff; padding: 0px 5px 0px 5px">
                                                            |
                                                        </div>
                                                        <div style="float: left">
                                                            <asp:LinkButton ID="lnkSolved" runat="server" OnClick="lnkSolved_Click">Success</asp:LinkButton>
                                                        </div>
                                                        <div style="float: right">
                                                            <asp:Button ID="btnTodaySchedule" runat="server" Text="Today's Schedule" OnClick="btnTodaySchedule_Click" />
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center">
                                                        <asp:GridView ID="gvEnquiry" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                                            ForeColor="#333333" GridLines="None" EmptyDataText="Data not available." DataKeyNames="EnquiryID">
                                                            <AlternatingRowStyle BackColor="White" Width="600px" />
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Enquiry ID">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkEnquiry" runat="server" Text='<%# Bind("EnquiryID") %>' OnClick="lnkEnquiry_Click"
                                                                            CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                                                                <%--<asp:BoundField DataField="EmailID" HeaderText="Email" SortExpression="EmailID" />--%>
                                                                <asp:BoundField DataField="MobileNo" HeaderText="Mobile No" SortExpression="MobileNo" />
                                                                <asp:BoundField DataField="Interested_Field" HeaderText="Category" SortExpression="Interested_Field" />
                                                                <asp:BoundField DataField="CreationDate" HeaderText="CreationDate" SortExpression="CreationDate" />
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <asp:Button ID="btnSchedule" runat="server" Text="Schedule" OnClick="btnSchedule_Click" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <asp:Button ID="btnSucess" runat="server" Text="Change to Success" OnClick="btnSucess_Click" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="ScheduleDate" HeaderText="ScheduleDate" SortExpression="ScheduleDate" />
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <asp:Button ID="btnTransfer" runat="server" Text="Transfer" OnClick="btnTransfer_Click" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <EmptyDataRowStyle CssClass="errorSpan" Font-Bold="True" Font-Size="15pt" ForeColor="Red" />
                                                            <FooterStyle BackColor="#CCCC99" />
                                                            <HeaderStyle BackColor="#021D48" Font-Bold="True" ForeColor="white" Height="5px" />
                                                            <PagerStyle ForeColor="#CCCCCC" HorizontalAlign="right" BackColor="#843808" />
                                                            <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
                                                            <AlternatingRowStyle BackColor="#C9DDFD" />
                                                            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                                            <SortedAscendingCellStyle BackColor="#FDF5AC" />
                                                            <SortedAscendingHeaderStyle BackColor="#4D0000" />
                                                            <SortedDescendingCellStyle BackColor="#FCF6C0" />
                                                            <SortedDescendingHeaderStyle BackColor="#820000" />
                                                        </asp:GridView>
                                                        <asp:Button ID="btnHidden4" runat="Server" Style="display: none" />
                                                        <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnHidden4"
                                                            CancelControlID="cancelBtnEdit" PopupControlID="pnlSchdeule" BackgroundCssClass="modalBackground">
                                                        </asp:ModalPopupExtender>
                                                        <asp:Panel ID="pnlSchdeule" runat="server">
                                                            <table class="Backgroundpop" cellpadding="3" cellspacing="3">
                                                                <tr>
                                                                    <td class="heading">
                                                                        Schdeule
                                                                    </td>
                                                                    <td>
                                                                        <div style="float: right">
                                                                            <img src="Images/newsletter_close.PNG" alt="close" runat="server" id="cancelBtnEdit" /></div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        Enquiry Id :
                                                                        <asp:Label ID="lblEnquiryId" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        Schdeule On :-
                                                                        <asp:TextBox ID="txtScheule" runat="server"></asp:TextBox>
                                                                        <asp:CalendarExtender ID="txtScheule_CalendarExtender" runat="server" TargetControlID="txtScheule">
                                                                        </asp:CalendarExtender>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
                                                        <asp:Button ID="btnHidd" runat="server" Style="display: none" />
                                                        <asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID="btnHidd"
                                                            CancelControlID="cancelBtnEdit1" PopupControlID="pnlTranfer" 
                                                            BackgroundCssClass="modalBackground" onload="ModalPopupExtender2_Load">
                                                        </asp:ModalPopupExtender>
                                                        <asp:Panel ID="pnlTranfer" runat="server">
                                                            <table class="Backgroundpop" cellpadding="3" cellspacing="3">
                                                                <tr>
                                                                    <td class="heading" colspan ="2">
                                                                        Transfer
                                                                    </td>
                                                                    <td>
                                                                        <div style="float: right">
                                                                            <img src="Images/newsletter_close.PNG" alt="close" runat="server" id="cancelBtnEdit1" /></div>
                                                                    </td>
                                                                </tr>
                                                                <tr style="display:none"><td>
                                                                    <asp:Label ID="lblEnqID" runat="server" ></asp:Label></td></tr>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        Transfer To :
                                                                        <asp:Label ID="Label1" runat="server"></asp:Label>
                                                                   
                                                                        Location
                                                                    </td>
                                                                    <td align="left">
                                                                        <asp:DropDownList ID="ddlLocation1" runat="server" Width="170px" >
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Button ID="btntransfer" runat="server" Text="Submit" OnClick="btntransfer_Click" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </center>
    </div>
    </form>
</body>
</html>
